let versionData = require('../../static/version.json');

const isNewVersion = () => {
  let version = versionData.version;
  let localVersion = localStorage.getItem('version');
  if (localVersion && localVersion != version) {
    localStorage.setItem('version', versionData.version);
    window.location.reload();
  } else {
    localStorage.setItem('version', versionData.version);
  }
};
export default {
  isNewVersion
}
